package com.itheima.service.impl;

import com.itheima.dao.UserMapper;
import com.itheima.pojo.User;
import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <dl>
 * <dd>描述: ~节点业务逻辑实现</dd>
 * <dd>创建时间：  15:30 2020/8/16</dd>
 * <dd>创建人： zz</dd>
 * <dt>版本历史: </dt>
 * <pre>
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2020/8/16      guodong       1.0        1.0 Version
 * </pre>
 * </dl>
 */
@Service //注入到spring容器中
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    /**
     * @Date: 15:31 2020/8/16
     * @Param: []
     * @return: List<User>
     * @Description: 查询所有用户
     **/
    @Override
    public List<User> findAll() {
        return userMapper.findAll();
    }
}
